package com.example.noobpackage.logic.network

import com.example.noobpackage.logic.model.AcceptedPackage
import com.example.noobpackage.logic.model.ExpressData
import retrofit2.http.*

interface OnlineExpressService {
    @GET("loadProxyPackage")
    suspend fun loadProxyPackage(
        @Query("account") account: Long
    ): List<ExpressData>

    @GET("getProxyPackageDetail")
    suspend fun loadProxyPackageDetail(
        @Query("marketId") marketId: String
    ): ContactResponse

    @GET("loadAcceptedPackage")
    suspend fun loadAcceptedPackage(
        @Query("account") account: Long
    ): List<AcceptedPackage>

    @FormUrlEncoded
    @POST("publishPackage")
    suspend fun publishPackage(
        @Field("account") account: Long,
        @Field("remarks") remarks: String,
        @Field("weight") weight: String,
        @Field("packageNumber") packageNumber: String,
        @Field("packageAccessingNumber") packageAccessingNumber: String,
        @Field("packageType") packageType: String,
        @Field("packageLocation") packageLocation: String
    ): PublishResponse
}